package com.aspose.cells;

abstract class zi implements zahl {
   protected int a;
   protected int b;
   protected zafv c;
   protected int d;
   protected int e;

   protected abstract void a(int var1);

   zi(zafv var1, int var2, int var3, int var4, int var5) {
      this.c = var1;
      this.a = var2;
      this.b = var4;
      this.d = var3 < 0 ? var1.a(-1, false) : var3;
      this.e = var5 < 0 ? var1.a(-1, true) : var5;
   }

   public void a(int var1, int var2) {
      if (this.a < 0) {
         this.d = this.c.a(-1, false);
      } else {
         this.d = this.c.b(this.a, this.d);
         if (this.d < 0) {
            this.d = -this.d - 1;
         }
      }

      if (this.b < 0) {
         this.e = this.c.a(-1, true);
      } else {
         this.e = this.c.b(this.b, this.e);
         if (this.e < 0) {
            this.e = this.c.a(-this.e - 1, true);
         }
      }

      if (var1 > -1) {
         this.a(this.c.a(var1, var2));
      }

   }
}
